<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改书籍</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">


</head>
<body>
<div class="container">
    <h1>修改书籍信息</h1>
    <hr>
    <h2>修改信息</h2>

    <form action="#" th:action="@{/addBook}" th:object="${book}" method="POST">

        <input type="hidden" th:field="*{id}" />

        <input type="text" th:field="*{name}" placeholder="书名" class="form-control mb-4 col-4">
        <input type="text" th:field="*{author}" placeholder="作者" class="form-control mb-4 col-4">
        <input type="text" th:field="*{publisher}" placeholder="出版社" class="form-control mb-4 col-4">
        <input type="text" th:field="*{bookNumber}" placeholder="书籍编号" class="form-control mb-4 col-4">
        <input type="text" th:field="*{bookType}" placeholder="书籍种类" class="form-control mb-4 col-4">
        <input type="text" th:field="*{price}" placeholder="销售价格" class="form-control mb-4 col-4">

        <button type="submit" class="btn btn-info col-2">修改书籍信息</button>
    </form>

    <a th:href="@{/}">返回首页</a>


</div>





</body>
</html>